package tech.aistar.corejava.day08;

/**
 * Created by 豆梦寒 on 2019/7/24.
 */
public  class Rect extends Shape {
//public abstract class Rect extends Shape {}
    private int len;
    private int width;

    @Override
    public double girth(){
        return (len+width)*2;
    }
    public Rect() {
    }

    public Rect(int len, int width) {
        this.len = len;
        this.width = width;
    }
}
